package com.hongbo.echartsjavawebdemo.controller;

import com.hongbo.echartsjavawebdemo.util.ServiceUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@Slf4j
public class ServiceController {

    @GetMapping("/getServerIp")
    @ResponseBody
    public String getServerIp(){
        String serviceIp = ServiceUtil.getServerIp();
        log.info(" serviceIp is "+serviceIp);
        return serviceIp;
    }
}
